package com.can.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.can.domain.entity.Menu;
import com.can.domain.vo.MenuTreeVO;

import java.util.List;


/**
 * 菜单权限表(SysMenu) 服务接口
 *
 * @author cancan
 * @since 2023-05-11 10:16:02
 */
public interface MenuService extends IService<Menu> {

    List<String> selectPermsByUserId(Long id);

    List<Menu> selectRouterMenuTreeByUserId(Long userId);

    void update(Menu menu);

    void delete(Long menuId);

    List<Menu> selectRouterMenuTreeAll();

    MenuTreeVO selectRouterMenuTreeByRoleId(Long id);
}
